﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DbSetupHelper.Common
{
    /// <summary>
    /// Class used to hold the parameters used during run. 
    /// </summary>
    public class RunParameters
    {
        private string userName;
        private string password;
        private string sqlServer;
        private string databaseName;
        private string dbUserName;
        private string dbPassword;

        /// <summary>
        /// Gets or sets the name of the user used to connect to the sql server.
        /// </summary>
        /// <value>The name of the user.</value>
        public string UserName
        {
            get { return this.userName; }
            set { this.userName = value; }
        }

        /// <summary>
        /// Gets or sets the password of the user used to connect to the sql server.
        /// </summary>
        /// <value>The password.</value>
        public string Password
        {
            get { return this.password; }
            set { this.password = value; }
        }

        /// <summary>
        /// Gets or sets the server string. ex. "localhost\InstanceName" or "127.0.0.100\InstanceName"
        /// </summary>
        /// <value>The server.</value>
        public string SqlServer
        {
            get { return this.sqlServer; }
            set { this.sqlServer = value; }
        }

        /// <summary>
        /// Gets or sets the name of the database.
        /// </summary>
        /// <value>The name of the database.</value>
        public string DatabaseName
        {
            get { return databaseName; }
            set { databaseName = value; }
        }

        /// <summary>
        /// Gets or sets the name of the database user.
        /// </summary>
        /// <value>The name of the database user.</value>
        public string DbUserName
        {
            get { return dbUserName; }
            set { dbUserName = value; }
        }

        /// <summary>
        /// Gets or sets the database password.
        /// </summary>
        /// <value>The database password.</value>
        public string DbPassword
        {
            get { return dbPassword; }
            set { dbPassword = value; }
        }
    }
}
